{% extends "base_u.tpl" %}
 
{% block page_content %}
          <p class="page_header">Админка сайта</p>

          <div id="admin_edit">
            {{ page }}
            {% if cache %}
              {% include 'admin/cache.tpl' %}
            {% endif %}
          </div>
          
          <br>
          
          {% if news or cites or pages or msgs %}
            <div id="admin_existent">
              <b>Существующие записи</b><br><br>
              <form action="{{ form_action }}" method="POST" name="existentData">
                <input type="hidden" name="action" value="delete">
                {% if news %}
                  {% include 'admin/news.tpl' %}
                {% endif %}
                
                {% if cites %}
                  {% include 'admin/cites.tpl' %}
                {% endif %}
                
                {% if pages %}
                  {% include 'admin/pages.tpl' %}
                {% endif %}
                
                {% if msgs %}
                  {% include 'admin/msgs.tpl' %}
                {% endif %}

                <br><br>
                <input type="submit" value="удалить">
                <input type="reset" value="очистить">
              </form>
            </div>
          {% endif %}
{% endblock %}